/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.barrientosjunior.blackup.model;

import java.io.Serializable;

/**
 *
 * @author Junior
 */
public class File implements Serializable{

    private boolean isEncrypted = false;

    private String pass;

    private String pathOrigin;

    private long lastModified;

    private String pathDestiny;

    private boolean keepOldCopies;

    public boolean isKeepOldCopies() {
        return keepOldCopies;
    }

    public void setKeepOldCopies(boolean keepOldCopies) {
        this.keepOldCopies = keepOldCopies;
    }

    public String getPathDestiny() {
        return pathDestiny;
    }

    public void setPathDestiny(String pathDestiny) {
        this.pathDestiny = pathDestiny;
    }

    public String getPathOrigin() {
        return pathOrigin;
    }

    public void setPathOrigin(String pathOrigin) {
        this.pathOrigin = pathOrigin;
    }

    @Override
    public String toString() {
        return (isEncrypted()? "Criptografado - ":"Desprotegido - ") +
                "Origem: \'" +
                pathOrigin +
                "\' - Destino: \'" +
                pathDestiny + "\'";
    }

    public long getLastModified() {
        return lastModified;
    }

    public void setLastModified(long lastModified) {
        this.lastModified = lastModified;
    }

    public void isEncrypted(boolean value){
        this.isEncrypted = value;
    }

    public boolean isEncrypted(){
        return this.isEncrypted;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }
}
